package cn.crm.controller;

import java.util.Date;

import org.apache.commons.lang3.Conversion;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.crm.Service.ICusDevPlanService;
import cn.crm.common.ServerResponse;
import cn.crm.conversion.DateConverter;
import cn.crm.entity.CusDevPlan;

@Controller
@RequestMapping(value="kaifa")
public class KaifaController {
	
	@Autowired
	private ICusDevPlanService cusdevplanservice;
	
	@RequestMapping(value="tokaifapage")
	public String topage(Integer saleChanceId){
		return "kaifa/kaifa_list";
	}
	
	@RequestMapping(value="insert")
	@ResponseBody
	public ServerResponse update(CusDevPlan cusDevPlan,Integer devResult){
		cusDevPlan.getPlanDate();
		System.err.println(devResult);
		return cusdevplanservice.insert(cusDevPlan,devResult);
	}

}
